<template>

  <el-container>
    <el-header>

      <el-menu
          :default-active="activeIndex2"
          class="el-menu-demo bigtop1"
          mode="horizontal"
          @select="handleSelect"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b">
        <div><el-menu-item style="width: 200px" class="left1">logo</el-menu-item></div>
        <div> <el-menu-item class="left2"> <div class="block"><el-avatar :size="30" :src="circleUrl"></el-avatar></div></el-menu-item></div>
        <div><el-submenu index="3" class="right2">
          <template  slot="title" >我的工作台</template>

          <el-menu-item index="2-3">退出登录</el-menu-item>
        </el-submenu></div>
      </el-menu>

    </el-header>
    <el-container>
      <el-aside width="190px"><el-col :span="12">
        <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
            background-color="#545c64"
            text-color="#fff"
            style="width: 189px"
            active-text-color="#ffd04b">
          <el-menu-item index="1">
            <i class="el-icon-setting"></i>
            <span slot="title">导航1</span>
          </el-menu-item>
          <el-menu-item index="2">
            <i class="el-icon-menu"></i>
            <router-link to="/test1" class="cloo1">租户用户模块</router-link>
          </el-menu-item>
          <el-menu-item index="3" >
            <i class="el-icon-document"></i>
            <router-link to="/test2"  class="cloo1">共享轮椅信息模块</router-link>
          </el-menu-item>
          <el-menu-item index="4">
            <i class="el-icon-setting"></i>
            <router-link to="/test3" class="cloo1">租用时长模块</router-link>
          </el-menu-item>
          <el-menu-item index="5">
            <i class="el-icon-s-promotion"></i>
          <router-link to="/test4" class="cloo1">信息统计模块</router-link>
          </el-menu-item>
          <el-menu-item index="6">
            <i class="el-icon-s-home"></i>
            <router-link to="/test5" class="cloo1">医院管理模块</router-link>
          </el-menu-item>
        </el-menu>
      </el-col></el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {

  name: "home",
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1'
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }

}
</script>

<style scoped>
*{
  margin: 0;
  padding: 0;
}
.bigtop1{
  display: flex;
  justify-content: space-around;
}
.left2{

}
.right2{

}
.left1{

}
.el-header{

  color: #333;
  text-align: center;
  line-height: 60px;
}
.cloo1{
  text-decoration: none;
  font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
  font-size: 15px;
  color: 	#100000 ;
}
.el-aside {

  color: #333;
  text-align: center;
  line-height: 200px;
}
.el-aside{
  background: #545c64;
}
.el-container{
  position: absolute;
  width: 100%;
  top: 0px ;
  left: 0 ;
  bottom: 0;
}
.el-header{
  padding: 0;
  z-index: 1000;
}
.el-main {

  color: #333;
  text-align: center;
  line-height: 160px;
}
</style>
